package com.qf.controller;

import com.qf.Vo.StuVo;
import com.qf.service.TeacherService;
import com.qf.utils.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 以梦为马，以汗为泉，不忘初心，不负韶华
 *
 * @author
 * @version 1.0
 * @data 2025/2/18 17:22
 */
@RestController
public class TeacherController {
    @Resource
    private TeacherService teacherService;
    @GetMapping("/tea")
    public R tea( int id){
        StuVo studentAndAllSubjectAndTeacherByStuid = teacherService.findStudentAndAllSubjectAndTeacherByStuid(id);
        return R.ok(studentAndAllSubjectAndTeacherByStuid);
    }
}
